/**
 * 
 */
package com.yidu.erp.service.BeyondRole;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.model.BeyondRole;
import com.yidu.erp.dao.BeyondRoleMapper;

/**
 * 
 * 角色service实现类
 * @author wws
 * @date  2017年11月7日
 */
@Service
public class RoleServiceImpl implements RoleService{

	@Resource
	private BeyondRoleMapper beyondRoleMapper ;
	
	@Override
	public List<BeyondRole> selectAll(Map<String, Object> map) {
		System.out.println("map==="+map);
		return beyondRoleMapper.selectAll(map);
	}

	
	@Override
	public int findAllRowCount(Map<String,Object> map) {
		
		return beyondRoleMapper.findAllRowCount(map);
	}

	
	@Override
	public boolean deleteByPrimaryKey(String roleId) {
		
		return beyondRoleMapper.deleteByPrimaryKey(roleId)>0;
	}

	
	@Override
	public int insertSelective(BeyondRole record) {
		
		return beyondRoleMapper.insertSelective(record);
	}

	
	@Override
	public int updateByPrimaryKeySelective(BeyondRole record) {
		
		return beyondRoleMapper.updateByPrimaryKeySelective(record);
	}

	
	@Override
	public BeyondRole selectByPrimaryKey(String roleId) {
		
		return beyondRoleMapper.selectByPrimaryKey(roleId);
	}


	@Override
	public BeyondRole getrole(String id) {
		
		return beyondRoleMapper.getrole(id);
	}


	
	@Override
	public List<BeyondRole> showroleAll() {
		
		return beyondRoleMapper.showroleAll();
	}


	
	@Override
	public List<BeyondRole> selectModeleid(String roleId) {
		
		return beyondRoleMapper.selectModeleid(roleId);
	}


	
	@Override
	public String selectRoleName(String roleId) {
		
		return beyondRoleMapper.selectRoleName(roleId);
	}


	
	@Override
	public List<BeyondRole> getAllrole(Map<String, Object> map) {
		
		return beyondRoleMapper.getAllrole(map);
	}
	

}
